package com.hhf.rpc.core.retry;

import com.hhf.rpc.core.retry.impl.NoRetryStrategy;
import com.hhf.rpc.core.spi.SpiLoader;

/**
 * @Author hhf
 * @Date 2024/10/20
 * @Description
 */
public class RetryStrategyFactory {


    private static final RetryStrategy DEFAULT_RETRYSTRATEGY = new NoRetryStrategy();

    /**
     * 从map获取实例
     */
    public static RetryStrategy getInstance(String key){
        return SpiLoader.getInstance(RetryStrategy.class,key);
    }
}
